package com.gxc.mq;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author GongXincheng
 * @since 2019-08-23 10:40
 */
@Component
@RabbitListener(queues = "fanout.B")
public class Demo5_Consumer_B {

    @RabbitHandler
    public void process(String message) {
        System.out.println("[fanout.B] get message：" + message);
    }

}
